Skip to content

New Feature: Add autofill support (#10565)#3210

Merged
kblok merged 1 commit into
masterfrom
implement-upstream-change-10565
Feb 24, 2026
Merged

New Feature: Add autofill support (#10565)#3210
kblok merged 1 commit into
masterfrom
implement-upstream-change-10565

Conversation

@kblok

@kblok kblok commented Feb 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Ports upstream Puppeteer PR #10565 which adds autofill support for testing form compatibility with browser autofill
  • Adds AutofillAsync(AutofillData) method to IElementHandle / ElementHandle with CDP implementation using Autofill.trigger command
  • Supports credit card autofill in Chrome (new headless and headful modes only); BiDi throws PuppeteerException as it's not supported

Changes

File Description
AutofillData.cs New class containing credit card autofill data
CreditCardData.cs Credit card fields (number, name, expiry, cvc)
IElementHandle.cs Added AutofillAsync to interface
ElementHandle.cs Added abstract AutofillAsync method
CdpElementHandle.cs CDP implementation using DOM.describeNode + Autofill.trigger
BidiElementHandle.cs Throws unsupported exception
AutofillTriggerRequest.cs CDP messaging class for Autofill.trigger
credit-card.html Test fixture HTML form
AutofillTests.cs Test: should fill out a credit card

Test plan

  • Chrome CDP: test passes
  • Firefox BiDi: test correctly skipped (upstream expectation: FAIL for Firefox)
  • Build succeeds with no warnings or errors

Closes #2262

🤖 Generated with Claude Code

Port upstream Puppeteer PR #10565 which adds the ability to trigger
browser autofill for testing form compatibility. Adds AutofillAsync
method to ElementHandle that uses the CDP Autofill.trigger command.
Currently supports credit card autofill in Chrome (new headless and
headful modes only).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kblok kblok merged commit a0955e2 into master Feb 24, 2026
14 checks passed
@kblok kblok deleted the implement-upstream-change-10565 branch February 24, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add autofill support

1 participant